package com.bjsxt.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author:liao
 * @Description:TODO 生产厂家DTO
 * @date:2020/12/20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "com-bjsxt-dto-ProducterDto")
@EqualsAndHashCode(callSuper = true) //表示使用equals比较时考虑父类的属性
public class ProducterDto extends BaseDto{
    //生产厂家id
    @ApiModelProperty(value = "生产厂家ID")
    private Long producterId;
    //生产厂家名称
    @ApiModelProperty(value = "生产厂家名称")
    @NotBlank(message = "厂家名称不能为空")
    private String producterName;
    //生产厂家简码 搜索用
    @ApiModelProperty(value = "生产厂家简码")
    @NotBlank(message = "生产厂家简码不能为空")
    private String producterCode;
    //生产厂家地址
    @ApiModelProperty(value = "生产厂家地址")
    @NotBlank(message = "生产厂家地址不能为空")
    private String producterAddress;
    // 生产厂家电话
    @ApiModelProperty(value = "厂家电话")
    @NotBlank(message = "生产厂家电话不能为空")
    private String producterTel;
    // 联系人
    @ApiModelProperty(value = "生产厂家联系人")
    private String producterPerson;
    // 生产厂家关键字
    @ApiModelProperty(value = "关键字")
    @NotBlank(message = "关键字不能为空")
    private String keywords;
    // 生产厂家状态 0正常 1停用
    @ApiModelProperty(value = "状态标识")
    @NotBlank(message = "状态标识不能为空")
    private String status;

}
